﻿using System;
using System.Collections.Generic;

public partial class Controls_FrontEnd_UserWrap : System.Web.UI.UserControl
{
    public string GetNews()
    {
        var html = string.Empty;
        var list = new List<Business.News>();
        var index = list.Count + 1;
        foreach (var newse in list)
        {
            var url = string.Format("{0}{1}{4}{2}{3}", Business.Config.ApplicationUrl, "", newse.TitleEn, ".html", "/");
            html +=
                " <div class=\"contentdiv\" style=\"display: block; z-index: " + index + "; opacity: 1.1; visibility: visible;\">" +
                Environment.NewLine +
                "<span class=\"cattitle\">" + newse.CateName + ":</span> <a class=\"toc\" href=\"" + url + "\">" +
                Environment.NewLine +
                "<span>" + newse.Title + "</span></a><span class=\"jv-titleflash-time\">" + string.Format("{0:ddd, MMM d, yyyy hh:mm}", newse.CreatedTime) + "</span>" +
                Environment.NewLine +
                "</div>" + Environment.NewLine;
            index--;

        }
        return html;
    }
}